#include "stdafx.h"
#include "BasicSkinTimer.h"

namespace BasicSkinTimer
{
	CBasicSkinTimer::CBasicSkinTimer(void* clsobj,void* clsFun)
		:m_clsobj(clsobj)
		,m_clsFun(clsFun)
	{

	}

	CBasicSkinTimer::~CBasicSkinTimer()
	{

	}

	void CBasicSkinTimer::fired()
	{
		CBasicSkinTimer* pObj = (CBasicSkinTimer*)m_clsobj;
		typedef void (CBasicSkinTimer::*POnTimer)(CBasicSkinTimer*);
		union{
			void* clsFun;
			POnTimer pFunTimer;
		}u;
		u.clsFun = m_clsFun;
		(pObj->*u.pFunTimer)(this);
	}
}